# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=kubergrunt
pkgver=0.9.1
pkgrel=0
pkgdesc="Binary with a collection of commands to fill the gaps between Terraform, Helm and Kubectl"
url="https://www.gruntwork.io/"
arch="all"
license="Apache-2.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/gruntwork-io/kubergrunt/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # Tests require a running Kubernetes cluster

build() {
	go build -v -o bin/$pkgname -ldflags "-X main.VERSION=v$pkgver" ./cmd
}

package() {
	install -Dm755 bin/$pkgname -t "$pkgdir"/usr/bin/
}

sha512sums="
d2be2ca4d9026033b232e1004324480688d0d21389049cf83655e7e36855cf31212f262c2becbadc4e8ec181bfa22021bd9d51f208692321b8c2d9400e3e2c54  kubergrunt-0.9.1.tar.gz
"
